#define _CRT_SECURE_NO_WARNINGS 1

//#include<stdio.h>
//#include<stdbool.h>
//#include<stdlib.h>
//struct ListNode
//{
//    int val;
//    struct ListNode* next;
//};
//
//bool hasCycle(struct ListNode* head)
//{
//    if (head == NULL || head->next == NULL) return false;
//    struct ListNode* fast, * slow;
//    fast = fast->next->next;
//    slow = slow->next;
//    while (fast != NULL && fast->next != NULL)
//    {
//        if (fast == slow) return true;
//        fast = fast->next->next;
//        slow = slow->next;
//    }
//    return false;
//}
//
//int main()
//{
//    struct ListNode* n1 = (struct ListNode*)malloc(sizeof(struct ListNode));
//    struct ListNode* n2 = (struct ListNode*)malloc(sizeof(struct ListNode));
//    struct ListNode* n3 = (struct ListNode*)malloc(sizeof(struct ListNode));
//    struct ListNode* n4 = (struct ListNode*)malloc(sizeof(struct ListNode));
//    n1->val = 1;
//    n2->val = 2;
//    n3->val = 3;
//    n4->val = 4;
//    n1->next = n2;
//    n2->next = n3;
//    n3->next = n4;
//    n4->next = NULL;
//
//    n2->next = NULL;
//    bool judge = hasCycle(n1);
//    return 0;
//}

#include<stdio.h>
int main()
{
	int a = 3;
	printf("%d", a += a -= a * a);
}